package com.woniuxy.entity.dto.stationPile;

import com.woniuxy.entity.po.stationPile.Pile;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
public class PileSimpleDTO {
    private Long id;
    private String pileName;
    private String pileNum;
    private Long pileCategoryId;
    private String pileCategoryValue;
    private Long pileTypeId;
    private String pileTypeValue;
    private Integer count;
    private BigDecimal power;

    public PileSimpleDTO(Pile pile) {
        BeanUtils.copyProperties(pile, this);
    }
}
